<%-- 
    Document   : toggleRemove
    Created on : 17.10.2010, 16:07:44
    Author     : nico
--%>

<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@page contentType="text/html" pageEncoding="UTF-8"%>

<c:choose>
    <c:when test="${it.deleted}">
        Task marked as deleted.
        <c:set var="title" value="Task deleted"/>
    </c:when>
    <c:otherwise>
        Done status unmarked.
        <c:set var="title" value="Task resurrected"/>
    </c:otherwise>
</c:choose>

<script type="text/javascript">
    $("#toggle-deleted-dialog").dialog({
        title: "${title}",
        buttons: {
            Ok: function() {
                $(this).dialog("close");
            }
        }
    });
</script>
